package com.lottery.material.entity.message;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：系统消息信息表
 * Created by 朱正磊 on 2019-04-09 10:27
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_system_message_info")
public class SystemMessageInfo extends BaseEntity {

    private static final long serialVersionUID = -5776205409716468704L;

    @Column(columnDefinition = "varchar(10) comment '消息类型编号'")
    private String messageTypeCode;

    @Column(columnDefinition = "varchar(100) comment '消息标题'")
    private String messageTitle;

    @Column(columnDefinition = "longtext comment '消息内容'")
    private String messageContent;

    @Column(columnDefinition = "varchar(100) comment '消息详情url'")
    private String messageUrl;

    @Column(columnDefinition = "int(1) default '1' comment '发送状态（1：待发送；2：已发送）'")
    private Integer sendState;

    @Column(columnDefinition = "int(1) default '1' comment '是否注册用户时自动推送（1：否；2：是）'")
    private Integer isRegisterPush;

}
